<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core">
    <h:body>
        <f:view>
            <h:form>
                <h:inputHidden id="id" value="#{categoryBean.category.id}"/>
                <h1><h:outputText value="Create/Edit"/></h1>
                <h:panelGrid columns="2">
                    <h:outputLabel value="CategoryDescription:" for="categoryDescription" />
                    <h:inputText id="categoryDescription" value="#{categoryBean.category.categoryDescription}" title="CategoryDescription" />
                    <h:outputLabel value="CategoryName:" for="categoryName" />
                    <h:inputText id="categoryName" value="#{categoryBean.category.name}" title="CategoryName" />
                </h:panelGrid>
                <h:commandLink action="#{categoryBean.save}">Save</h:commandLink>
            </h:form>
        </f:view>
    </h:body>
</html>

